Optimal. Leaf size=147 \[ \frac {256 i a^4 \sec ^5(c+d x)}{1155 d (a+i a \tan (c+d x))^{5/2}}+\frac {64 i a^3 \sec ^5(c+d x)}{231 d (a+i a \tan (c+d x))^{3/2}}+\frac {8 i a^2 \sec ^5(c+d x)}{33 d \sqrt {a+i a \tan (c+d x)}}+\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 147, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3575, 3574}
\begin {gather*} \frac {256 i a^4 \sec ^5(c+d x)}{1155 d (a+i a \tan (c+d x))^{5/2}}+\frac {64 i a^3 \sec ^5(c+d x)}{231 d (a+i a \tan (c+d x))^{3/2}}+\frac {8 i a^2 \sec ^5(c+d x)}{33 d \sqrt {a+i a \tan (c+d x)}}+\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3574
Rule 3575
Rubi steps
\begin {align*} \int \sec ^5(c+d x) (a+i a \tan (c+d x))^{3/2} \, dx &=\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d}+\frac {1}{11} (12 a) \int \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {8 i a^2 \sec ^5(c+d x)}{33 d \sqrt {a+i a \tan (c+d x)}}+\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d}+\frac {1}{33} \left (32 a^2\right ) \int \frac {\sec ^5(c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\\ &=\frac {64 i a^3 \sec ^5(c+d x)}{231 d (a+i a \tan (c+d x))^{3/2}}+\frac {8 i a^2 \sec ^5(c+d x)}{33 d \sqrt {a+i a \tan (c+d x)}}+\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d}+\frac {1}{231} \left (128 a^3\right ) \int \frac {\sec ^5(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx\\ &=\frac {256 i a^4 \sec ^5(c+d x)}{1155 d (a+i a \tan (c+d x))^{5/2}}+\frac {64 i a^3 \sec ^5(c+d x)}{231 d (a+i a \tan (c+d x))^{3/2}}+\frac {8 i a^2 \sec ^5(c+d x)}{33 d \sqrt {a+i a \tan (c+d x)}}+\frac {2 i a \sec ^5(c+d x) \sqrt {a+i a \tan (c+d x)}}{11 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.13, size = 109, normalized size = 0.74 \begin {gather*} \frac {2 a \sec ^4(c+d x) (\cos (d x)-i \sin (d x)) (i \cos (3 c+2 d x)+\sin (3 c+2 d x)) (39+494 \cos (2 (c+d x))+215 i \sec (c+d x) \sin (3 (c+d x))+110 i \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{1155 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.76, size = 125, normalized size = 0.85
method | result | size |
default | \(\frac {2 \left (512 i \left (\cos ^{6}\left (d x +c \right )\right )+512 \sin \left (d x +c \right ) \left (\cos ^{5}\left (d x +c \right )\right )-64 i \left (\cos ^{4}\left (d x +c \right )\right )+192 \sin \left (d x +c \right ) \left (\cos ^{3}\left (d x +c \right )\right )-20 i \left (\cos ^{2}\left (d x +c \right )\right )+140 \sin \left (d x +c \right ) \cos \left (d x +c \right )+105 i\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a}{1155 d \cos \left (d x +c \right )^{5}}\) | \(125\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 994 vs. \(2 (115) = 230\).
time = 10.55, size = 994, normalized size = 6.76 \begin {gather*} \frac {64 \, {\left (231 i \, \sqrt {2} a \cos \left (6 \, d x + 6 \, c\right ) + 198 i \, \sqrt {2} a \cos \left (4 \, d x + 4 \, c\right ) + 88 i \, \sqrt {2} a \cos \left (2 \, d x + 2 \, c\right ) - 231 \, \sqrt {2} a \sin \left (6 \, d x + 6 \, c\right ) - 198 \, \sqrt {2} a \sin \left (4 \, d x + 4 \, c\right ) - 88 \, \sqrt {2} a \sin \left (2 \, d x + 2 \, c\right ) + 16 i \, \sqrt {2} a\right )} {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )}^{\frac {1}{4}} \sqrt {a}}{1155 \, {\left ({\left (4 \, \cos \left (2 \, d x + 2 \, c\right )^{3} + {\left (4 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (2 \, d x + 2 \, c\right )^{2} + 4 i \, \sin \left (2 \, d x + 2 \, c\right )^{3} + {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (8 \, d x + 8 \, c\right ) + 4 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (6 \, d x + 6 \, c\right ) + 6 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (4 \, d x + 4 \, c\right ) + 9 \, \cos \left (2 \, d x + 2 \, c\right )^{2} + {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (8 \, d x + 8 \, c\right ) + 4 \, {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (6 \, d x + 6 \, c\right ) + 6 \, {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (4 \, d x + 4 \, c\right ) + 4 \, {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (2 \, d x + 2 \, c\right ) + 6 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (\frac {3}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right ) + {\left (4 i \, \cos \left (2 \, d x + 2 \, c\right )^{3} + {\left (4 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (2 \, d x + 2 \, c\right )^{2} - 4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} + {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \cos \left (8 \, d x + 8 \, c\right ) + 4 \, {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \cos \left (6 \, d x + 6 \, c\right ) + 6 \, {\left (i \, \cos \left (2 \, d x + 2 \, c\right )^{2} + i \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \cos \left (4 \, d x + 4 \, c\right ) + 9 i \, \cos \left (2 \, d x + 2 \, c\right )^{2} - {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (8 \, d x + 8 \, c\right ) - 4 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (6 \, d x + 6 \, c\right ) - 6 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (4 \, d x + 4 \, c\right ) - 4 \, {\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (2 \, d x + 2 \, c\right ) + 6 i \, \cos \left (2 \, d x + 2 \, c\right ) + i\right )} \sin \left (\frac {3}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right )\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 125, normalized size = 0.85 \begin {gather*} -\frac {64 \, \sqrt {2} {\left (-231 i \, a e^{\left (6 i \, d x + 6 i \, c\right )} - 198 i \, a e^{\left (4 i \, d x + 4 i \, c\right )} - 88 i \, a e^{\left (2 i \, d x + 2 i \, c\right )} - 16 i \, a\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{1155 \, {\left (d e^{\left (10 i \, d x + 10 i \, c\right )} + 5 \, d e^{\left (8 i \, d x + 8 i \, c\right )} + 10 \, d e^{\left (6 i \, d x + 6 i \, c\right )} + 10 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 5 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}} \sec ^{5}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.25, size = 293, normalized size = 1.99 \begin {gather*} \frac {a\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,64{}\mathrm {i}}{5\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}-\frac {a\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,192{}\mathrm {i}}{7\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3}+\frac {a\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,64{}\mathrm {i}}{3\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^4}-\frac {a\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,64{}\mathrm {i}}{11\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________